package  
{
	import net.flashpunk.graphics.Text;
	import net.flashpunk.Entity;
	
	public class girderPointsText extends Entity
	{
		[Embed(source = 'fonts/fracas_font.ttf', embedAsCFF = "false", fontFamily = 'PointsFont')]
		private const POINTS_FONT:Class;
		public var theText:Text;
	
		public var count:int;
		
		public function girderPointsText() 
		{
			Text.font = "PointsFont";
			theText = new Text("");
			graphic = theText;
			theText.color = 0xFF1234
			theText.resizable = true;
			theText.size = 10;
			layer = -1;
		}
		public override function update():void {
			if (theText.size > 25) theText.size = 25;
			if (count > 0) {
				count--;
				y = y - 5;
				if (count == 0) theText.text = "";
			}
		}
		
	}

}